<template>
    <mxq-router id="app" :keepAlive="false" :routeSession="routeSession"></mxq-router>
</template>

<script>
import webMethod from './libs/web.js'
import { removeSession,setSession } from './libs/cache'
const routeSession = sessionStorage.getItem('mxq_RouteSessionCache') || "";
export default {
	name: 'App',
	mixins: [ webMethod ],
	data() {
		return {
			routeSession: routeSession
		}
	},
    components: {
        
    },
    watch: {
        '$route' (newRoute) {
            this.routeSession = sessionStorage.getItem('mxq_RouteSessionCache') || ""
        }
    }
}
</script>

<style>
* {
    margin: 0;
    padding: 0;
    cursor:pointer;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
    min-height: 100%;
    cursor:pointer;
    text-align: center;
}
.mxq-router-transition-wrapper {
    padding-bottom: 46px;
}
.mxq-router-transition-router{
    top: 0;
}
.mxq-router-transition-content{
	top: 46px;
}
</style>